From: Keir Fraser Date: Tue, 19 May 2009 22:30:32 +0000 (+0100) Subject: gnttab: Remove unused per-domain map_count field X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13901 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=03cd09e044498c26beb79dbb0967bcc326cab7ae;p=xen.git gnttab: Remove unused per-domain map_count field Signed-off-by: Steven Smith --- diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index 1c32772a88..613caed877 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -119,7 +119,6 @@ __get_maptrack_handle( if ( unlikely((h = t->maptrack_head) == (t->maptrack_limit - 1)) ) return -1; t->maptrack_head = maptrack_entry(t, h).ref; - t->map_count++; return h; } @@ -129,7 +128,6 @@ put_maptrack_handle( { maptrack_entry(t, handle).ref = t->maptrack_head; t->maptrack_head = handle; - t->map_count--; } static inline int diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h index d0e8040a19..096af9bb4c 100644 --- a/xen/include/xen/grant_table.h +++ b/xen/include/xen/grant_table.h @@ -91,7 +91,6 @@ struct grant_table { struct grant_mapping **maptrack; unsigned int maptrack_head; unsigned int maptrack_limit; - unsigned int map_count; /* Lock protecting updates to active and shared grant tables. */ spinlock_t lock; };